{% extends "base.html" %}

{% block greeting %}
  {% if profiler %}
    {# The profiler has registered before #}
    <h4>{{ welcome_message }}</h4>
  {% else %}
    {# The profiler is not registered yet #}
    <h4>Welcome! You must be new.</h4>
    <br/>
    <h5>Directions:</h5>
    <div width="300">Let me explain how this site works.<br/>
    You get 500 to begin with.<br/>
    You can try gambling with your money.<br/> 
    Or you can playing challenge Texas Hold'em 1-on-1 games.<br/> 
    Those will teach you how to play against certain types of players.<br/>
    Every time you lose all your money, you can refill it, but you will get one less!<br/>
    After you register, pick one of the games and get started. Good luck!<br/>
  {% endif %}
{% endblock greeting %}

{% block form %}
  {% if profiler %}
      Here is your information:<br/>
      Name: {{ profiler.nickname }}<br/>
      Money: {{ profiler.money }}
      <br/><br/>
  {% else %}
    <h5>What is your name?</h5>
    <form action="/" method="post" name="register_form">
      <input type="text" name="nickname" value="" />
	  <input type="submit" name="submit_button" value="Submit">
    </form>
  {% endif %}
{% endblock form %}